package com.jming.jike.service.front;

import com.jming.jike.dto.front.ShoppingCartDTO;
import com.jming.jike.vo.front.ShoppingCartDetailVO;

/**
 * @author jinming.zhang
 * @version 0.0.1
 * @date 2022/04/16
 */
public interface ShoppingCartService {

    /**
     * 添加购物车
     *
     * @param shoppingCartDTO
     * @return Boolean
     * @Author jinming.zhang
     * @Date 2022/5/5
     */
    Boolean add(ShoppingCartDTO shoppingCartDTO);

    /**
     * 删减购物车
     *
     * @param shoppingCartDTO
     * @return Boolean
     * @Author jinming.zhang
     * @Date 2022/5/5
     */
    Boolean cut(ShoppingCartDTO shoppingCartDTO);

    /**
     * 清空购物车
     *
     * @param
     * @return Boolean
     * @Author jinming.zhang
     * @Date 2022/5/5
     */
    Boolean clean();

    /**
     * 购物车详情
     *
     * @param
     * @return ShoppingCartDetailVO
     * @Author jinming.zhang
     * @Date 2022/5/5
     */
    ShoppingCartDetailVO list();
}
